# coding=utf-8
# 递归简单示例


# strtest = "while"
#
#
# def reverse_str(input_str):
#     ch=list(input_str)
#     lens=len(ch)
#     i=0
#     j=lens-1
#     while i < j:
#         tmp = ch[i]
#         ch[i] =ch[j]
#         ch[j]=tmp
#         i+=1
#         j-=1
#     return ''.join(ch)
#
#
# a = reverse_str(strtest)
# print(a)
#
# sslist = strtest[::-1]
# print(sslist)


undefined = "tomorrow"
print(undefined.split())

def distent(newo):
    tuplelis = newo.split("", 1)
    print(tuplelis)
    for i, data in enumerate(tuplelis):
        print(i, data)


A = distent(undefined)
